/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.mzk.lidovky.articles.articlesData;

import java.util.logging.Logger;

/**
 *
 * @author Martin Řehánek (rehan at mzk.cz)
 */
public abstract class TsvParser implements ArticleDataParser {

    private static final Logger logger = Logger.getLogger(TsvParser.class.getName());

    /**
     *
     * @param string
     * @return for "text" returns text (if CSV_TEXT_SEPARATOR is '"') and null for empty string
     */
    protected String removeTextDelimits(String string) {
        if (string == null) {
            return null;
        } else {
            return string;
        }
    }

    /**
     *
     * @param string
     * @return for text returns "text" (if CSV_TEXT_SEPARATOR is '"')
     * for {@code string == null} returns null, for {@code string == ""} returns ""
     */
    protected String addTextDelimits(String string) {
        return string;
    }
}
